package com.itheima.teacher.client;



import com.itheima.pojo.Order;
import com.itheima.teacher.client.fallback.OrderClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "order-service",fallback = OrderClientFallback.class)
public interface OrderClient {

    @GetMapping("/order")
    List<Order> findAllOrder();
}
